package org.scohen.juploadr;
import java.io.File;
import java.io.IOException;

import org.eclipse.swt.graphics.Point;
import org.scohen.juploadr.app.scalers.ImageScalerFactory;
import org.scohen.juploadr.app.scalers.Scaler;

public class ImageTest {
    private static String picture = "/home/steve/workspace/juploadr/test/resources/image026.jpg";

    public static void main(String[] args) throws IOException {
        File f = new File("/tmp/scaled.jpg");
        if (f.exists()) {
            f.delete();
        }
        Scaler s = ImageScalerFactory.getScaler();
        s.scale(new File(picture), f, new Point(1280, 1024));
    }
}
